﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dln.Model;
using Dln.Common.Helper;

public partial class Page_日常工作_WorkSoultionDetial : BasePage
{
    protected WorkSoultion model = new WorkSoultion();
    protected string typeName = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        int IDPlus = Convert.ToInt32(Request.QueryString["IDPlus"]);
        if (IDPlus > 0)
        {
            model = SqlHelper.Context.From<WorkSoultion>().Where(d => d.Id == IDPlus).ToFirstDefault();
            if (model != null)
            {
               var typeModel =  SqlHelper.Context.From<ProblemTypes>().Where(d => d.Id == model.Type).ToFirstDefault();
                typeName = typeModel.TypeName;
            }
        }
    }
}